/* Element Plus 科技风样式覆盖 */

/* 表单组件样式 */
:deep(.el-form-item__label) {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

:deep(.el-input__wrapper) {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: none;
  transition: var(--transition);
}

:deep(.el-input__wrapper:hover) {
  border-color: rgba(0, 212, 255, 0.4);
}

:deep(.el-input__wrapper.is-focus) {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

:deep(.el-input__inner) {
  color: white;
  background: transparent;
}

:deep(.el-input__inner::placeholder) {
  color: rgba(255, 255, 255, 0.5);
}

:deep(.el-select .el-input__wrapper) {
  background: rgba(255, 255, 255, 0.08);
}

:deep(.el-date-editor .el-input__wrapper) {
  background: rgba(255, 255, 255, 0.08);
}

:deep(.el-textarea__inner) {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
}

:deep(.el-textarea__inner:focus) {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

:deep(.el-input-number .el-input__wrapper) {
  background: rgba(255, 255, 255, 0.08);
}

/* 按钮样式 */
:deep(.el-button--primary) {
  background: var(--cyber-gradient);
  border: none;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

:deep(.el-button--primary:hover) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.6);
}

:deep(.el-button--success) {
  background: linear-gradient(135deg, var(--neon-green) 0%, #059669 100%);
  border: none;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

:deep(.el-button--success:hover) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

:deep(.el-button--danger) {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

:deep(.el-button--danger:hover) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.6);
}

:deep(.el-button--default) {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

:deep(.el-button--default:hover) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* 卡片样式 */
:deep(.el-card__header) {
  background: rgba(0, 212, 255, 0.1);
  border: none;
  border-radius: 20px 20px 0 0;
  padding: 20px 25px;
}

:deep(.el-card__body) {
  padding: 25px;
}

/* 表格样式 */
:deep(.el-table) {
  background: transparent;
  color: white;
  border-radius: 10px;
  overflow: hidden;
}

:deep(.el-table__header-wrapper) {
  background: rgba(0, 212, 255, 0.1);
}

:deep(.el-table th.el-table__cell) {
  background: rgba(0, 212, 255, 0.1);
  color: white;
  font-weight: 600;
  border: none;
}

:deep(.el-table td.el-table__cell) {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: none;
}

:deep(.el-table__row) {
  background: rgba(255, 255, 255, 0.02);
}

:deep(.el-table__row:hover) {
  background: rgba(0, 212, 255, 0.1) !important;
}

:deep(.el-table--striped .el-table__row--striped) {
  background: rgba(255, 255, 255, 0.03);
}

:deep(.el-table--border) {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:deep(.el-table--border::after) {
  background: rgba(255, 255, 255, 0.1);
}

:deep(.el-table__border-left-patch) {
  background: rgba(255, 255, 255, 0.1);
}

/* 覆盖 Element Plus 默认的表格行背景色 */
:deep(.el-table tr) {
  background-color: transparent !important;
}

:deep(.el-table thead tr) {
  background-color: transparent !important;
}

:deep(.el-table tbody tr) {
  background-color: transparent !important;
}

/* 分页样式 */
:deep(.el-pagination) {
  color: white;
}

:deep(.el-pagination .el-pager li) {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 0 4px;
  transition: var(--transition);
}

:deep(.el-pagination .el-pager li:hover) {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--neon-blue);
  color: white;
}

:deep(.el-pagination .el-pager li.is-active) {
  background: var(--cyber-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

:deep(.el-pagination .btn-prev),
:deep(.el-pagination .btn-next) {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition);
}

:deep(.el-pagination .btn-prev:hover),
:deep(.el-pagination .btn-next:hover) {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--neon-blue);
  color: white;
}

:deep(.el-pagination__total),
:deep(.el-pagination__jump) {
  color: rgba(255, 255, 255, 0.8);
}

:deep(.el-select__wrapper) {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* 标签页样式 */
:deep(.el-tabs__header) {
  margin: 0 0 30px 0;
  border: none;
}

:deep(.el-tabs__nav-wrap) {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:deep(.el-tabs__item) {
  color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 12px;
  margin: 0 4px;
  padding: 12px 24px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

:deep(.el-tabs__item:hover) {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

:deep(.el-tabs__item.is-active) {
  color: white;
  background: var(--cyber-gradient);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

:deep(.el-tabs__active-bar) {
  display: none;
}

/* 对话框样式 */
:deep(.el-dialog) {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

:deep(.el-dialog__header) {
  background: var(--cyber-gradient);
  color: white;
  border-radius: 20px 20px 0 0;
  padding: 20px 25px;
  border: none;
}

:deep(.el-dialog__title) {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

:deep(.el-dialog__headerbtn .el-dialog__close) {
  color: white;
  font-size: 1.2rem;
}

:deep(.el-dialog__body) {
  padding: 25px;
  color: white;
}

:deep(.el-dialog__footer) {
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 下拉框样式 */
:deep(.el-select-dropdown) {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

:deep(.el-select-dropdown__item) {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

:deep(.el-select-dropdown__item:hover) {
  background: rgba(0, 212, 255, 0.1);
  color: white;
}

:deep(.el-select-dropdown__item.is-selected) {
  background: var(--cyber-gradient);
  color: white;
}

/* 日期选择器样式 */
:deep(.el-date-picker) {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

:deep(.el-picker-panel) {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

:deep(.el-date-table td.available:hover) {
  background: rgba(0, 212, 255, 0.2);
}

:deep(.el-date-table td.current:not(.disabled)) {
  background: var(--cyber-gradient);
  color: white;
}

/* 上传组件样式 */
:deep(.el-upload-dragger) {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 60px 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

:deep(.el-upload-dragger::before) {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cyber-gradient);
  opacity: 0;
  transition: var(--transition);
}

:deep(.el-upload-dragger:hover) {
  border-color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.05);
  transform: scale(1.02);
}

:deep(.el-upload-dragger:hover::before) {
  opacity: 0.05;
}

:deep(.el-upload) {
  width: 100%;
}

:deep(.el-upload__tip) {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* 加载动画 */
:deep(.el-loading-mask) {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
}

:deep(.el-loading-spinner) {
  color: var(--neon-blue);
}